<script>
	import update from '@/utils/update'
	export default {
		onLaunch: function() {
			console.log('App Launch')
			update.checkUpdate({});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* uni.css - 通用组件、模板样式库，可以当作一套ui库应用 */
	@import "common/css/uni.css";

	@font-face {
		font-family: 'zzhicon';
		font-weight: normal;
		font-style: normal;
		src: url('static/font/iconfont.ttf') format('truetype');
	}

	.zzhicon {
		font-family: 'zzhicon' !important;
		font-size: 16px;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;

		&.icon-fenlei {
			&:before {
				content: "\e659";
			}
		}

		&.icon-tongzhi {
			&:before {
				content: "\e758";
			}
		}

		&.icon-shang {
			&:before {
				content: "\e6af";
			}
		}

		&.icon-jiantou {
			&:before {
				content: "\e66c";
			}
		}

		&.icon-xingxing {
			&:before {
				content: "\e610";
			}
		}

		&.icon-bangzhu {
			&:before {
				content: "\e77c";
			}
		}

		&.icon-jiansvg {
			&:before {
				content: "\e60d";
			}
		}

		&.icon-jia {
			&:before {
				content: "\e62a";
			}
		}

		&.icon-gouwuche {
			&:before {
				content: "\e63b";
			}
		}

		&.icon-shouye {
			&:before {
				content: "\e677";
			}
		}

		&.icon-xin {
			&:before {
				content: "\e635";
			}
		}

		&.icon-shanchu {
			&:before {
				content: "\e72d";
			}
		}

		&.icon-check1 {
			&:before {
				content: "\e64c";
			}
		}

		&.icon-weibiaoti-- {
			&:before {
				content: "\e626";
			}
		}

		&.icon-daifukuan {
			&:before {
				content: "\e68f";
			}
		}

		&.icon-dingdan {
			&:before {
				content: "\e637";
			}
		}

		&.icon-shouhoutuikuan {
			&:before {
				content: "\e604";
			}
		}

		&.icon-tubiaolunkuo- {
			&:before {
				content: "\e60e";
			}
		}

		&.icon-shezhi {
			&:before {
				content: "\e72a";
			}
		}

		&.icon-dizhi {
			&:before {
				content: "\e618";
			}
		}

		&.icon-shanchu1 {
			&:before {
				content: "\e6e8";
			}
		}
	}

	page {
		background-color: #f5f5f5;
	}

	.uni-list-cell:after {
		background-color: #dee1e2;
	}

	.uni-list:before,
	.uni-list:after {
		height: 0;
	}

	.list-space {
		margin-top: 20upx;
	}

	.edit-list-cell {
		display: flex;
		justify-content: space-between;

		.edit-list-right {
			margin-right: 32upx;
		}
	}

	.clamp {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		display: block;
	}

	view,
	scroll-view,
	swiper,
	swiper-item,
	cover-view,
	cover-image,
	icon,
	text,
	rich-text,
	progress,
	button,
	checkbox,
	form,
	input,
	label,
	radio,
	slider,
	switch,
	textarea,
	navigator,
	audio,
	camera,
	image,
	video {
		box-sizing: border-box;
	}

	/* 骨架屏替代方案 */
	.Skeleton {
		background: #f3f3f3;
		padding: 20upx 0;
		border-radius: 8upx;
	}

	/* 图片载入替代方案 */
	.image-wrapper {
		font-size: 0;
		background: #f3f3f3;
		border-radius: 4px;

		image {
			width: 100%;
			height: 100%;
			transition: .6s;
			opacity: 0;

			&.loaded {
				opacity: 1;
			}
		}
	}

	.clamp {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		display: block;
	}

	.common-hover {
		background: #f5f5f5;
	}

	/*边框*/
	.b-b:after,
	.b-t:after {
		position: absolute;
		z-index: 3;
		left: 0;
		right: 0;
		height: 0;
		content: '';
		transform: scaleY(.5);
		border-bottom: 1px solid $border-color-base;
	}

	.b-b:after {
		bottom: 0;
	}

	.b-t:after {
		top: 0;
	}

	/* button样式改写 */
	uni-button,
	button {
		height: 80upx;
		line-height: 80upx;
		font-size: $font-lg + 2upx;
		font-weight: normal;

		&.no-border:before,
		&.no-border:after {
			border: 0;
		}
	}

	uni-button[type=default],
	button[type=default] {
		color: $font-color-dark;
	}

	/* input 样式 */
	.input-placeholder {
		color: #999999;
	}

	.placeholder {
		color: #999999;
	}
</style>
